package com.lzx.reggie.entity

import java.io.Serializable
import java.math.BigDecimal

import java.time.LocalDateTime


data class Orders(
    var id: Long? = null,
    //订单号
    var number: String? = null,
    //订单状态 1待付款，2待派送，3已派送，4已完成，5已取消
    var status: Int? = null,
    //下单用户id
    var userId: Long? = null,
    //地址id
    var addressBookId: Long? = null,
    //下单时间
    var orderTime: LocalDateTime? = null,
    //结账时间
    var checkoutTime: LocalDateTime? = null,
    //支付方式 1微信，2支付宝
    var payMethod: Int? = null,
    //实收金额
    var amount: BigDecimal? = null,
    //备注
    var remark: String? = null,
    //用户名
    var userName: String? = null,
    //手机号
    var phone: String? = null,
    //地址
    var address: String? = null,
    //收货人
    var consignee: String? = null
) : Serializable {
    companion object {
        private const val serialVersionUID = 1L
    }
}

